<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>简化对象写法</title>
</head>
<body>
    <script>
        let name = '尚硅谷';
        let pos = '北京';
        let change = function(){
            console.log('改变');
        }

        const atguigu = {
            name,
            pos,
            change,
            improve(){
                console.log('提升');
            }
        }
        console.log(atguigu)

    </script>
</body>
</html>